package cn.wh.beans.factory.config;

import cn.wh.beans.PropertyValue;
import cn.wh.beans.PropertyValues;

/**
 * @Author wanghao
 * @Date 2022-08-24 21:10
 * @Description: TODO
 */
public class BeanDefinition {
    private Class  beanClass;
    private PropertyValues propertyValues;

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public PropertyValues getPropertyValues() {
      return propertyValues;
    }

    public void setPropertyValue(PropertyValues propertyValues) {
        this.propertyValues=propertyValues;
    }

    public BeanDefinition(Class beanClass, PropertyValue propertyValue) {
        this.beanClass = beanClass;
        this.propertyValues=propertyValue==null?new PropertyValues():propertyValues;
    }

    public BeanDefinition(Class beanClass) {
        this.beanClass = beanClass;
        this.propertyValues=new PropertyValues();
    }
}
